<template>
  <div>
    <van-nav-bar title="意见反馈详情" left-text="返回" left-arrow @click-left="back"/>

    <h3>反馈详情:</h3>
    <div class="detail">
        
        <p>反馈标题：{{data.title}} </p>
        <p>反馈内容:{{data.content}} </p>
        <p>用户ID:{{data.userId}}</p>
        <p>反馈时间：{{data.createTime}}</p>
      
      </div>
    </div>
</template>

<script>
import{opinionget} from "./Service"
import mixin from  "@/mixin/flag";
export default {
    mixins:[mixin],
    data(){
        return{
            data:[],
        }
    },
    methods:{
        back(){
                this.$router.go(-1);
            },
    },
    async created(){
        let res=await opinionget({
            id:this.$route.params.id
        })
        console.log(res);
        this.data=res.data.data
    }
}
</script>

<style lang="scss" scoped>
.detail{
    font-size:16px;
    }
</style>